package com.honghu.villagepost.activity;

import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.honghu.villagepost.R;
import com.honghu.villagepost.base.BaseActivity;
import com.honghu.villagepost.constant.IntentKeyConstant;
import com.honghu.villagepost.constant.IntentKeyConstant;

import butterknife.BindView;
import butterknife.OnClick;

public class RegisterStepPhoneActivity extends BaseActivity {

    @BindView(R.id.et_phone)
    EditText mEtPhone;
    @BindView(R.id.tv_next)
    TextView mTvNext;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_register_step_phone;
    }

    @Override
    protected void init(Bundle savedInstanceState, View container) {
        setMainTitle("用户注册");

    }

    @OnClick(R.id.tv_next)
    public void onViewClicked() {
        String phone = mEtPhone.getText().toString().trim();
        if (TextUtils.isEmpty(phone)){
            showToast("请输入手机号码");
            return;
        }
        Intent intent = new Intent(this, RegisterActivity.class);
        intent.putExtra(IntentKeyConstant.PHONE, phone);
        startActivity(intent);

    }
}
